<?php


namespace app\api\validate;


use think\Validate;

class UserFeedbackValidate extends Validate
{

    protected $rule =   [
        'id'            => 'require|number',
        'type_id'       => 'require|number',
        'content'       => 'require',
    ];

    protected $message  =   [
        'id.require'            => '反馈ID不能为空',
        'id.number'             => '反馈ID必须为数字',
        'type_id.require'       => '分类ID不能为空',
        'type_id.number'        => '分类ID必须为数字',
        'content.require'       => '反馈内容不能为空'
    ];

    protected $scene = [
        'id'                   => ['id'],
        'info'                 => ['type_id','content'],
    ];

}